package vn.vfriends.mcms.admin.service;

import java.io.InputStream;
import java.io.OutputStream;
import java.io.Serializable;
import org.apache.commons.net.ftp.FTPFile;

/**
 *
 * @author tuan@vfriends.vn
 */
public interface FTPFileService extends Serializable {
    
    public FTPFile[] listFiles(String path) throws Exception;
    
    public boolean rename(String from, String to) throws Exception;
    
    public boolean deleteFile(String path) throws Exception;
    
    public boolean removeDirectory(String path) throws Exception;
    
    public boolean retrieveFile(String remote, OutputStream local) throws Exception;
    
    public boolean storeFile(String remote, InputStream input) throws Exception;
    
    public OutputStream storeFileStream(String remote) throws Exception;
    
    public boolean makeDirectory(String remote) throws Exception;
}
